package com.forekenow.Demo8.Exercise.E5;


public class Test {
    public static void main(String[] args) {
        UseComputer useComputer = new UseComputer();
        Computer computer = new Add();
        useComputer.useCom(computer,8,8);
        Computer computer1 = new Subtract();
        useComputer.useCom(computer1,8,8);
        Computer computer2 = new Multiply();
        useComputer.useCom(computer2,8,8);
        Computer computer3 = new Divide();
        useComputer.useCom(computer3,8,0);
    }
}
